package org.kjtc.mapper;

import org.kjtc.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * @ Author     ：Yellowong
 * @ Date       ：Created in 10:17 2018/12/5
 * @ Description：
 */
@Mapper
public interface UserMapper {

    /* 返回符合条件的用户列表
    @SelectProvider(type = UserProvider.class, method = "getUserList")
    List<User> getUserList(User user);*/

    /* 通过账号返回用户对象 */
    @SelectProvider(type = UserProvider.class, method = "getUser")
    User getUser(User user);

}
